package com.darren.euc.dao.impl;


import java.util.List;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.darren.euc.dao.LoginValidateDao;
import com.darren.euc.entity.LoginValidate;


@Repository
public class LoginValidateDaoImpl extends BaseDaoImpl<LoginValidate, Integer> implements LoginValidateDao {
	
	@SuppressWarnings("unchecked")
	@Override
	public List<LoginValidate> getAll() {
		Session session = sessionFactory.getCurrentSession();	
		return (List<LoginValidate>)session.createQuery("from LoginValidate").list();
	}	
	

}